package com.net.oil.user.bean;

import java.io.Serializable;

/**
 * 作者：lch
 * 时间：2018/3/15:16:03
 * 邮箱：245850413@qq.com
 * 说明：
 */

public class UserInfo implements Serializable{

    /**
     * userDetail : {"uid":"943f62faef6f4d06af141a2d904fc28d","name":"测试","nick":null,"registTime":1521100326122,"portrait":null,"intro":null,"type":1,"gender":null,"level":null,"phone":"15515713935","status":1,"label":null,"email":null}
     * token : {"tempToken":"","realToken":"5B5BAA1B977C6C1E94D4D97F2FD9A1C4-1521100491573-03EA797B923652DEAE20D1A247B4D9BF"}
     */
    boolean hasCoupon;
    private UserDetailBean userDetail;
    private TokenBean token;

    public UserDetailBean getUserDetail() {
        return userDetail;
    }

    public void setUserDetail(UserDetailBean userDetail) {
        this.userDetail = userDetail;
    }

    public TokenBean getToken() {
        return token;
    }

    public void setToken(TokenBean token) {
        this.token = token;
    }

    public boolean isHasCoupon() {
        return hasCoupon;
    }

    public void setHasCoupon(boolean hasCoupon) {
        this.hasCoupon = hasCoupon;
    }

    public static class UserDetailBean implements Serializable{
        /**
         * uid : 943f62faef6f4d06af141a2d904fc28d
         * name : 测试
         * nick : null
         * registTime : 1521100326122
         * portrait : null
         * intro : null
         * type : 1
         * gender : null
         * level : null
         * phone : 15515713935
         * status : 1
         * label : null
         * email : null
         */

        private String uid;
        private String name;
        private String nick;
        private long registTime;
        private String portrait;
        private Object intro;
        private int type;
        private Object gender;
        private Object level;
        private String phone;
        private int status;
        private String label;
        private String email;
        private String invitationPhone;
        private String invitationCode;

        public String getUid() {
            return uid;
        }

        public void setUid(String uid) {
            this.uid = uid;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getNick() {
            return nick;
        }

        public void setNick(String nick) {
            this.nick = nick;
        }

        public long getRegistTime() {
            return registTime;
        }

        public void setRegistTime(long registTime) {
            this.registTime = registTime;
        }

        public String getPortrait() {
            return portrait;
        }

        public void setPortrait(String portrait) {
            this.portrait = portrait;
        }

        public Object getIntro() {
            return intro;
        }

        public void setIntro(Object intro) {
            this.intro = intro;
        }

        public int getType() {
            return type;
        }

        public void setType(int type) {
            this.type = type;
        }

        public Object getGender() {
            return gender;
        }

        public void setGender(Object gender) {
            this.gender = gender;
        }

        public Object getLevel() {
            return level;
        }

        public void setLevel(Object level) {
            this.level = level;
        }

        public String getPhone() {
            return phone;
        }

        public void setPhone(String phone) {
            this.phone = phone;
        }

        public int getStatus() {
            return status;
        }

        public void setStatus(int status) {
            this.status = status;
        }

        public String getLabel() {
            return label;
        }

        public void setLabel(String label) {
            this.label = label;
        }

        public String getEmail() {
            return email;
        }

        public void setEmail(String email) {
            this.email = email;
        }

        public String getInvitationPhone() {
            return invitationPhone;
        }

        public void setInvitationPhone(String invitationPhone) {
            this.invitationPhone = invitationPhone;
        }

        public String getInvitationCode() {
            return invitationCode;
        }

        public void setInvitationCode(String invitationCode) {
            this.invitationCode = invitationCode;
        }
    }

    public static class TokenBean implements Serializable{
        /**
         * realToken : 5B5BAA1B977C6C1E94D4D97F2FD9A1C4-1521100491573-03EA797B923652DEAE20D1A247B4D9BF
         */

        private String realToken;

        public String getRealToken() {
            return realToken;
        }

        public void setRealToken(String realToken) {
            this.realToken = realToken;
        }
    }
}
